<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Thêm Cán bộ', true), array('action' => 'add')); ?></li>
		<li><?php echo $html->link(__('Danh sách Trạm BVTV', true), array('controller' => 'trambvtvs', 'action' => 'index')); ?> </li>
		<!-- li><?php echo $html->link(__('New Trambvtv', true), array('controller' => 'trambvtvs', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List P Dt Bds', true), array('controller' => 'p_dt_bds', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New P Dt Bd', true), array('controller' => 'p_dt_bds', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Phieu Dts', true), array('controller' => 'phieu_dts', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Phieu Dt', true), array('controller' => 'phieu_dts', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Thoitiets', true), array('controller' => 'thoitiets', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Thoitiet', true), array('controller' => 'thoitiets', 'action' => 'add')); ?> </li -->
		<li><?php echo $html->link(__('Danh sách User', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<!-- li><?php echo $html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li --> 
	</ul>
</div>
<div class="view">
<h2><?php echo 'DANH MỤC CÁN BỘ';?></h2>
<p>
<?php
$paginator->options(array('url'=>$this->passedArgs));
echo $paginator->counter(array(
'format' => 'Hiện có %count% mẫu tin - Trang %page%/%pages%'
));
?></p>
<table cellpadding="0" cellspacing="0">
<tr>
	<!--th><?php echo $paginator->sort('STT');?></th-->
	<th><?php echo $paginator->sort('Trạm BVTV','Trambvtv.TEN_TR');?></th>
	<th><?php echo $paginator->sort('Họ tên','Canbo.HOTEN');?></th>
	<th><?php echo $paginator->sort('Ngày sinh','Canbo.NGAYSINH');?></th>
	<th><?php echo $paginator->sort('Phái','Canbo.PHAI');?></th>
	<th class="actions"><?php echo 'Hành động';?></th>
</tr>
<?php
$i = 0;
foreach ($canbos as $canbo):
	$class = null;
	if ($i++ % 2 == 0) {
		$class = ' class="altrow"';
	}
?>
	<tr<?php echo $class;?>>
		<!--td>
			<?php echo $canbo['Canbo']['id']; ?>
		</td-->
		<td>
			<?php 
			echo $canbo['Trambvtv']['TEN_TR'];
			/*
			echo $html->link($canbo['Trambvtv']['id'], array('controller' => 'trambvtvs', 'action' => 'view', $canbo['Trambvtv']['id']));
			*/ 
			?>
		</td>
		<td>
			<p align="left"><?php echo $canbo['Canbo']['HOTEN']; ?></p>
		</td>
		<td>
			<?php echo $canbo['Canbo']['NGAYSINH']; ?>
		</td>
		<td>
			<?php echo $canbo['Canbo']['PHAI']; ?>
		</td>
		<td class="actions">
			<?php //echo $html->link(__('Xem', true), array('action' => 'view', $canbo['Canbo']['id'])); ?>
			<?php echo $html->link(__('Sửa', true), array('action' => 'edit', $canbo['Canbo']['id'])); ?>
			<?php echo $html->link(__('Xóa', true), array('action' => 'delete', $canbo['Canbo']['id']), null, sprintf(__('Bạn có chắc muốn xóa # %s?', true), $canbo['Canbo']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
</table>
</div>
<div class="paging">
	<?php echo $paginator->prev('<< '.'Trước', array(), null, array('class'=>'disabled'));?>
 | 	<?php echo $paginator->numbers();?>
	<?php echo $paginator->next('Sau'.' >>', array(), null, array('class' => 'disabled'));?>
</div>

